package com.service.impl;


import com.dao.IStudentDao;
import com.service.IStudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.ImportResource;
import org.springframework.lang.UsesSunHttpServer;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

//@Component
//@Service(value = "ssi")
@Service
public class StudentServiceImpl implements IStudentService {

    @Autowired//默认为byType,该注解为spring的注解
    private IStudentDao iStudentDao;

    @Override
    public void showAllInfo() {

        iStudentDao.getAllStduents();

    }

    public void setiStudentDao(IStudentDao iStudentDao) {
        this.iStudentDao = iStudentDao;
    }


}
